import express from "express";
const router = express.Router();
router.get("/get_info", (req, res) => {
  res.json({
    code: 200,
    msg: "查询成功",
    data: {
      id: 1,
      name: "张三",
      age: 18,
    },
  });
});
router.get("/get_list", (req, res) => {
  res.json({
    code: 200,
    msg: "查询成功",
    data: [
      { id: 1, name: "张三", age: 18 },
      { id: 2, name: "李四", age: 19 },
    ],
  });
});
export default router;
